import request from '../utils/axios';

export function chat(data) {
  return request.post({
    url: '/chat/',
    method: 'post',
    data,
  });
}
export function speak(data) {
  return request.post({
    url: '/speak/',
    method: 'post',
    data,
    responseType: 'blob'
  });
}
export function get_token() {
  return request.post({
    url: '/get_token/',
    method: 'post',
  });
}